package com.hotline.communication.mapper;

import com.hotline.communication.dto.PlayRecordDTO;
import com.hotline.communication.entity.PlayRecord;
import org.apache.ibatis.annotations.Param;

public interface PlayRecordMapper {
    /**
     * 新增
     * @param playRecord
     * @return
     */
    Integer insert(PlayRecord playRecord);

    /**
     * 更新记录
     * @param playRecordDTO
     */
    void update(PlayRecordDTO playRecordDTO);


    /**
     * 取一条话机听录音记录
     * @param orgId 机构代码
     * @return
     */
    PlayRecordDTO selectOne(@Param("orgId") String orgId);

}
